const loader = require.context("./", false, /\.vue$/);

const comps = [];

for (let key of loader.keys()) {
    let comp = loader(key).default;
    let name = comp.name.startsWith("comp-") ? comp.name : "";
    let component = comp;
    if (name) comps.push({ name, component });
}

export default comps;